package com.yuhs.zixing.study.design.pattern.dp002.create.c002.factory.f004;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/4/25 9:27 PM
 */
public class MaleFactory004 implements HumanFactory004{
    /**
     * 制造一个黄色人种
     *
     * @return
     */
    @Override
    public Human004 createYellowHuman() {
        return new MaleYellowHuman004();
    }

    /**
     * 制造一个白色人种
     *
     * @return
     */
    @Override
    public Human004 createWhiteHuman() {
        return new MaleWhiteHuman004();
    }

    /**
     * 制造一个黑色人种
     *
     * @return
     */
    @Override
    public Human004 createBlackHuman() {
        return new MaleBlackHuman004();
    }
}
